home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / mathstud.zip / X101.M < prev   
Text File  |  1993-03-23  |  194b  |  11 lines

  1. function y=x101(n)
  2. %y=x101(n)
  3. %return a n-point vector linearly spaced -1 to 1
  4.  
  5. %       S.Halevy 7/31/92
  6. %       Copyright (c) 1992 by the MathWizards
  7.  
  8.  
  9. y= ((0:(n-1))/(n-1) - 0.5)*2;
  10.  
  11.